import request from '@/utils/request'

// 查询宝箱奖励信息列表
export function listTypes(query) {
  return request({
    url: '/system/types/list',
    method: 'get',
    params: query
  })
}

// 查询宝箱奖励信息详细
export function getTypes(rewardTypeId) {
  return request({
    url: '/system/types/' + rewardTypeId,
    method: 'get'
  })
}

// 新增宝箱奖励信息
export function addTypes(data) {
  return request({
    url: '/system/types',
    method: 'post',
    data: data
  })
}

// 修改宝箱奖励信息
export function updateTypes(data) {
  return request({
    url: '/system/types',
    method: 'put',
    data: data
  })
}

// 删除宝箱奖励信息
export function delTypes(rewardTypeId) {
  return request({
    url: '/system/types/' + rewardTypeId,
    method: 'delete'
  })
}
